﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="cancelation_items.aspx.cs" Inherits="RastinArgham.CRM.Web.cancelation_items" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <h3 class="ui-widget-header">
            <asp:Literal ID="lbtitle" runat="server" Text="علت انصراف سرویس" />
   </h3>

   <div class="ui-layout-content ui-widget-content">
        
        <mani:PagingGridView ID="gvCancelationItems" runat="server" DataKeyNames="Id" 
            onselectedindexchanging="gvCancelationItems_SelectedIndexChanging" 
            onpageindexchanging="gvCancelationItems_PageIndexChanging">
            <Columns>
                <asp:BoundField HeaderText="کد" DataField="Id" />
                <asp:BoundField HeaderText="توضیحات" DataField="Description" />
                <asp:TemplateField HeaderText="ویرایش">
                    <itemtemplate>
                        <asp:LinkButton ID="btnEdit" runat="server" CausesValidation="False" CommandName="Select">
                                <img src="/App_Themes/<%=Page.Theme %>/images/edit.gif" alt="" style="border:0;" />
                        </asp:LinkButton>
                    </itemtemplate>
                </asp:TemplateField>
            </Columns>
        </mani:PagingGridView>

        <div class="space2"></div>

         <h3>ایجاد و ویرایش علت انصراف</h3>

        <table>
            <tr>
                <td>کد</td>
                <td>
                    <asp:TextBox ID="txtId" runat="server" ReadOnly="true" />
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td>توضیحات</td>
                <td>
                    <asp:TextBox ID="txtDescription" runat="server" Width="200" />
                    <asp:RequiredFieldValidator ID="rfvDescription" ValidationGroup="SubmitChanges" runat="server" ControlToValidate="txtDescription" ErrorMessage="*" Text="" />
                </td>
            </tr>
             <tr>
                <td colspan="2">&nbsp;</td>
            </tr>

             <tr>
              <td colspan="2">
                <asp:Button ID="btnSaveChanges" ValidationGroup="SubmitChanges" Text="ذخیره تغییرات" runat="server" onclick="btnSaveChanges_Click" />
              </td>
            </tr>
        </table>
          
   </div>
</asp:Content>
